<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: sbloader.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('sbloader_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">sbloader.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef _loader_h</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define _loader_h</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;bootloader_common.h&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;crc/crc32.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef SB_FILE_MAJOR_VERSION</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define SB_FILE_MAJOR_VERSION 1</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__sbloader.html#ga776140b8326b3fbe0d466c71e7f424e4">   48</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__sbloader.html#ga776140b8326b3fbe0d466c71e7f424e4">_sbloader_status</a></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    kStatusRomLdrSectionOverrun = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 0),</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    kStatusRomLdrSignature = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 1),</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    kStatusRomLdrSectionLength = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 2),</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    kStatusRomLdrUnencryptedOnly = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 3),</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    kStatusRomLdrEOFReached = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 4),</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    kStatusRomLdrChecksum = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 5),</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    kStatusRomLdrCrc32Error = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 6),</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    kStatusRomLdrUnknownCommand = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 7),</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    kStatusRomLdrIdNotFound = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 8),</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    kStatusRomLdrDataUnderrun = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 9),</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    kStatusRomLdrJumpReturned = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 10),</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    kStatusRomLdrCallFailed = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 11),</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    kStatusRomLdrKeyNotFound = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 12),</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    kStatusRomLdrSecureOnly = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 13),</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    kStatusRomLdrResetReturned = MAKE_STATUS(<a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>, 14)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;};</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#define BYTES_PER_CHUNK 16</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define BOOT_SIGNATURE 0x504d5453</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#define BOOT_SIGNATURE2 0x6c746773</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#define FFLG_DISPLAY_PROGRESS 0x0001</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#define SFLG_SECTION_BOOTABLE 0x0001</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#define CFLG_LAST_TAG 0x01</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#define ROM_ERASE_ALL_MASK 0x01</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">#define ROM_ERASE_ALL_UNSECURE_MASK 0x02</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#define ROM_JUMP_SP_MASK 0x02</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#define ROM_MEM_SPACE_SHIFT 0x8</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#define ROM_MEM_SPACE_MASK 0xf</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="group__sbloader.html#ga1536554f61934f8efda2c88d6ffb320c">  100</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__sbloader.html#ga1536554f61934f8efda2c88d6ffb320c">_ldr_memory_space</a></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;{</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    kLdrMemorySpace_Internal,</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    kLdrMemorySpace_eMMC0,</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    kLdrMemorySpace_SD0,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    kLdrMemorySpace_SDRAM0,</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    kLdrMemorySpace_IFR0,</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    kLdrMemorySpace_eFuse0,</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    kLdrMemorySpace_OTP0</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;};</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#define ROM_MEM_CTRL_SHIFT 0x8</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#define ROM_MEM_CTRL_MASK 0xf</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__sbloader.html#gab6bc76cbbc27492728383544ea731c72">  118</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__sbloader.html#gab6bc76cbbc27492728383544ea731c72">_ldr_memory_ctrl</a></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    kLdrMemoryCtrl_InternalFlash,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    kLdrMemoryCtrl_QSPI0,</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    kLdrMemoryCtrl_PNOR0</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#define ROM_PROG_8BYTE_MASK 0x01</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#define ROM_NOP_CMD 0x00</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#define ROM_TAG_CMD 0x01</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#define ROM_LOAD_CMD 0x02</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#define ROM_FILL_CMD 0x03</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#define ROM_JUMP_CMD 0x04</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#define ROM_CALL_CMD 0x05</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#define ROM_MODE_CMD 0x06</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#define ROM_ERASE_CMD 0x07</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#define ROM_RESET_CMD 0x08</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">#define ROM_MEM_ENABLE_CMD 0x09</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#define ROM_PROG_CMD 0x0a</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#define ROM_BOOT_SECTION_ID 1</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#define ROM_BOOT_IMAGE_ID 2</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">typedef</span> uint8_t chunk_t[BYTES_PER_CHUNK];</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="group__sbloader.html">  148</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_boot_cmd</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;{</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="group__sbloader.html#a59eac9627282a484fbaf0aa7aa3b8a9a">  150</a></span>&#160;    uint8_t <a class="code" href="group__sbloader.html#a59eac9627282a484fbaf0aa7aa3b8a9a">checksum</a>; </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__sbloader.html#a50ffde9be79dd080d9e8effe3ee52d66">  151</a></span>&#160;    uint8_t <a class="code" href="group__sbloader.html#a50ffde9be79dd080d9e8effe3ee52d66">tag</a>;      </div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="group__sbloader.html#a1e87af3c18a2fd36c61faf89949bdc3f">  152</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#a1e87af3c18a2fd36c61faf89949bdc3f">flags</a>;   </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="group__sbloader.html#ac0d31ca829f934cccd89f8054e02773e">  153</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#ac0d31ca829f934cccd89f8054e02773e">address</a>; </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="group__sbloader.html#a86988a65e0d3ece7990c032c159786d6">  154</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#a86988a65e0d3ece7990c032c159786d6">count</a>;   </div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="group__sbloader.html#a1e43bf7d608e87228b625cca2c04d641">  155</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#a1e43bf7d608e87228b625cca2c04d641">data</a>;    </div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;} <a class="code" href="group__sbloader.html#structboot__cmd__t">boot_cmd_t</a>;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="group__sbloader.html">  159</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_boot_hdr1</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;{</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="group__sbloader.html#a11ecb029164e055f28f4123ce3748862">  161</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#a11ecb029164e055f28f4123ce3748862">hash</a>;       </div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="group__sbloader.html#acd2a6284879dded65f0b8daa7c68485a">  162</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#acd2a6284879dded65f0b8daa7c68485a">signature</a>;  </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="group__sbloader.html#a5bd4e4c943762926c8f653b6224cced2">  163</a></span>&#160;    uint8_t <a class="code" href="group__sbloader.html#a5bd4e4c943762926c8f653b6224cced2">major</a>;       </div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="group__sbloader.html#ae2f416b0a34b7beb4ed3873d791ac393">  164</a></span>&#160;    uint8_t <a class="code" href="group__sbloader.html#ae2f416b0a34b7beb4ed3873d791ac393">minor</a>;       </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="group__sbloader.html#aee7c63a38575c45dbbfb42d4175e62cc">  165</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#aee7c63a38575c45dbbfb42d4175e62cc">fileFlags</a>;  </div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="group__sbloader.html#a522c456248878bb557496ee9378a3d7f">  166</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#a522c456248878bb557496ee9378a3d7f">fileChunks</a>; </div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;} <a class="code" href="group__sbloader.html#structboot__hdr1__t">boot_hdr1_t</a>;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="group__sbloader.html">  170</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>_boot_hdr2</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;{</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="group__sbloader.html#a5201e6634f83af91b52b19a094da866b">  172</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#a5201e6634f83af91b52b19a094da866b">bootOffset</a>; </div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="group__sbloader.html#ab1d8063887a5703d08991ff3c1a09cfb">  173</a></span>&#160;    uint32_t <a class="code" href="group__sbloader.html#ab1d8063887a5703d08991ff3c1a09cfb">bootSectID</a>; </div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="group__sbloader.html#a7e5512fd8e604fd1d9b9d38da4c5350f">  174</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#a7e5512fd8e604fd1d9b9d38da4c5350f">keyCount</a>;   </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="group__sbloader.html#adffa18f0c236456f5bd980d12d0921a4">  175</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#adffa18f0c236456f5bd980d12d0921a4">keyOffset</a>;  </div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="group__sbloader.html#a0b929d82928397451b15e9c5b6fe9f0b">  176</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#a0b929d82928397451b15e9c5b6fe9f0b">hdrChunks</a>;  </div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group__sbloader.html#ae80cf2d01b7912e3586ad6054c73540f">  177</a></span>&#160;    uint16_t <a class="code" href="group__sbloader.html#ae80cf2d01b7912e3586ad6054c73540f">sectCount</a>;  </div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;} <a class="code" href="group__sbloader.html#structboot__hdr2__t">boot_hdr2_t</a>;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="comment">// Provides forward reference to the loader context definition.</span></div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__sbloader.html#struct__ldr___context">_ldr_Context</a> ldr_Context_t;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="group__sbloader.html#ga0245e0acbad099fc68373e9510a30e2a">  184</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> (*<a class="code" href="group__sbloader.html#ga0245e0acbad099fc68373e9510a30e2a">pLdrFnc_t</a>)(ldr_Context_t *);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="group__sbloader.html#ga4c78980909d12afd94251b0d8a0e6d72">  187</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> (*<a class="code" href="group__sbloader.html#ga4c78980909d12afd94251b0d8a0e6d72">pJumpFnc_t</a>)(uint32_t);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="group__sbloader.html#ga1de0f1c5f7def685737224bccd4e427d">  190</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> (*<a class="code" href="group__sbloader.html#ga1de0f1c5f7def685737224bccd4e427d">pCallFnc_t</a>)(uint32_t, uint32_t *);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="group__sbloader.html">  193</a></span>&#160;<span class="keyword">struct </span><a class="code" href="group__sbloader.html#struct__ldr___context">_ldr_Context</a></div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;{</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <a class="code" href="group__sbloader.html#ga0245e0acbad099fc68373e9510a30e2a">pLdrFnc_t</a> Action;        <span class="comment">// !&lt; pointer to loader action function</span></div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    uint32_t fileChunks;     <span class="comment">// !&lt; chunks remaining in file</span></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    uint32_t sectChunks;     <span class="comment">// !&lt; chunks remaining in section</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    uint32_t bootSectChunks; <span class="comment">// !&lt; number of chunks we need to complete the boot section</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    uint32_t receivedChunks; <span class="comment">// !&lt; number of chunks we need to complete the boot section</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    uint16_t fileFlags;      <span class="comment">// !&lt; file header flags</span></div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    uint16_t keyCount;       <span class="comment">// !&lt; number of keys in the key dictionary</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    uint32_t objectID;       <span class="comment">// !&lt; ID of the current boot section or image</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <a class="code" href="group__crc32.html#structcrc32__data__t">crc32_data_t</a> crc32;      <span class="comment">// !&lt; crc calculated over load command payload</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    uint8_t *src;            <span class="comment">// !&lt; source buffer address</span></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    chunk_t initVector;      <span class="comment">// !&lt; decryption initialization vector</span></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    chunk_t dek;             <span class="comment">// !&lt; chunk size DEK if the image is encrypted</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    chunk_t scratchPad;      <span class="comment">// !&lt; chunk size scratch pad area</span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <a class="code" href="group__sbloader.html#structboot__cmd__t">boot_cmd_t</a> bootCmd;      <span class="comment">// !&lt; current boot command</span></div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    uint32_t skipCount;      <span class="comment">// !&lt; Number of chunks to skip</span></div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordtype">bool</span> skipToEnd;          <span class="comment">// !&lt; true if skipping to end of file</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;};</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="preprocessor">#endif // __cplusplus</span></div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__sbloader.html#ga196130e1b193207247c017a437943ea5">sbloader_init</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__sbloader.html#ga839acaad7be8bbbec73522fe70c32302">sbloader_pump</a>(uint8_t *data, uint32_t length);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__sbloader.html#gab83b73573b68707e69221c1417fd452d">sbloader_finalize</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#endif // __cplusplus</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#endif // _loader_h</span></div><div class="ttc" id="group__sbloader_html_ae2f416b0a34b7beb4ed3873d791ac393"><div class="ttname"><a href="group__sbloader.html#ae2f416b0a34b7beb4ed3873d791ac393">boot_hdr1_t::minor</a></div><div class="ttdeci">uint8_t minor</div><div class="ttdoc">minor file format version </div><div class="ttdef"><b>Definition:</b> sbloader.h:164</div></div>
<div class="ttc" id="group__sbloader_html_a11ecb029164e055f28f4123ce3748862"><div class="ttname"><a href="group__sbloader.html#a11ecb029164e055f28f4123ce3748862">boot_hdr1_t::hash</a></div><div class="ttdeci">uint32_t hash</div><div class="ttdoc">last 32-bits of SHA-1 hash </div><div class="ttdef"><b>Definition:</b> sbloader.h:161</div></div>
<div class="ttc" id="group__sbloader_html_ga1536554f61934f8efda2c88d6ffb320c"><div class="ttname"><a href="group__sbloader.html#ga1536554f61934f8efda2c88d6ffb320c">_ldr_memory_space</a></div><div class="ttdeci">_ldr_memory_space</div><div class="ttdoc">Memory Space constants. </div><div class="ttdef"><b>Definition:</b> sbloader.h:100</div></div>
<div class="ttc" id="group__sbloader_html_structboot__cmd__t"><div class="ttname"><a href="group__sbloader.html#structboot__cmd__t">boot_cmd_t</a></div><div class="ttdoc">Boot command definition. </div><div class="ttdef"><b>Definition:</b> sbloader.h:148</div></div>
<div class="ttc" id="group__sbloader_html_a59eac9627282a484fbaf0aa7aa3b8a9a"><div class="ttname"><a href="group__sbloader.html#a59eac9627282a484fbaf0aa7aa3b8a9a">boot_cmd_t::checksum</a></div><div class="ttdeci">uint8_t checksum</div><div class="ttdoc">8-bit checksum over command chunk </div><div class="ttdef"><b>Definition:</b> sbloader.h:150</div></div>
<div class="ttc" id="group__sbloader_html_a1e87af3c18a2fd36c61faf89949bdc3f"><div class="ttname"><a href="group__sbloader.html#a1e87af3c18a2fd36c61faf89949bdc3f">boot_cmd_t::flags</a></div><div class="ttdeci">uint16_t flags</div><div class="ttdoc">command flags (modifier) </div><div class="ttdef"><b>Definition:</b> sbloader.h:152</div></div>
<div class="ttc" id="group__sbloader_html_ab1d8063887a5703d08991ff3c1a09cfb"><div class="ttname"><a href="group__sbloader.html#ab1d8063887a5703d08991ff3c1a09cfb">boot_hdr2_t::bootSectID</a></div><div class="ttdeci">uint32_t bootSectID</div><div class="ttdoc">section ID of the first boot section </div><div class="ttdef"><b>Definition:</b> sbloader.h:173</div></div>
<div class="ttc" id="group__sbloader_html_a1e43bf7d608e87228b625cca2c04d641"><div class="ttname"><a href="group__sbloader.html#a1e43bf7d608e87228b625cca2c04d641">boot_cmd_t::data</a></div><div class="ttdeci">uint32_t data</div><div class="ttdoc">data argument </div><div class="ttdef"><b>Definition:</b> sbloader.h:155</div></div>
<div class="ttc" id="group__sbloader_html_a0b929d82928397451b15e9c5b6fe9f0b"><div class="ttname"><a href="group__sbloader.html#a0b929d82928397451b15e9c5b6fe9f0b">boot_hdr2_t::hdrChunks</a></div><div class="ttdeci">uint16_t hdrChunks</div><div class="ttdoc">number of chunks in the header </div><div class="ttdef"><b>Definition:</b> sbloader.h:176</div></div>
<div class="ttc" id="group__sbloader_html_adffa18f0c236456f5bd980d12d0921a4"><div class="ttname"><a href="group__sbloader.html#adffa18f0c236456f5bd980d12d0921a4">boot_hdr2_t::keyOffset</a></div><div class="ttdeci">uint16_t keyOffset</div><div class="ttdoc">chunk offset to the key dictionary </div><div class="ttdef"><b>Definition:</b> sbloader.h:175</div></div>
<div class="ttc" id="group__sbloader_html_ga0245e0acbad099fc68373e9510a30e2a"><div class="ttname"><a href="group__sbloader.html#ga0245e0acbad099fc68373e9510a30e2a">pLdrFnc_t</a></div><div class="ttdeci">status_t(* pLdrFnc_t)(ldr_Context_t *)</div><div class="ttdoc">Function pointer definition for all loader action functions. </div><div class="ttdef"><b>Definition:</b> sbloader.h:184</div></div>
<div class="ttc" id="group__sbloader_html_gab6bc76cbbc27492728383544ea731c72"><div class="ttname"><a href="group__sbloader.html#gab6bc76cbbc27492728383544ea731c72">_ldr_memory_ctrl</a></div><div class="ttdeci">_ldr_memory_ctrl</div><div class="ttdoc">Memory Controller constants. </div><div class="ttdef"><b>Definition:</b> sbloader.h:118</div></div>
<div class="ttc" id="group__sbloader_html_a86988a65e0d3ece7990c032c159786d6"><div class="ttname"><a href="group__sbloader.html#a86988a65e0d3ece7990c032c159786d6">boot_cmd_t::count</a></div><div class="ttdeci">uint32_t count</div><div class="ttdoc">count argument </div><div class="ttdef"><b>Definition:</b> sbloader.h:154</div></div>
<div class="ttc" id="group__sbloader_html_gab83b73573b68707e69221c1417fd452d"><div class="ttname"><a href="group__sbloader.html#gab83b73573b68707e69221c1417fd452d">sbloader_finalize</a></div><div class="ttdeci">status_t sbloader_finalize(void)</div><div class="ttdoc">Implement jump or reset command. </div><div class="ttdef"><b>Definition:</b> sbloader.c:1131</div></div>
<div class="ttc" id="group__sbloader_html_a7e5512fd8e604fd1d9b9d38da4c5350f"><div class="ttname"><a href="group__sbloader.html#a7e5512fd8e604fd1d9b9d38da4c5350f">boot_hdr2_t::keyCount</a></div><div class="ttdeci">uint16_t keyCount</div><div class="ttdoc">number of keys in the key dictionary </div><div class="ttdef"><b>Definition:</b> sbloader.h:174</div></div>
<div class="ttc" id="group__sbloader_html_structboot__hdr1__t"><div class="ttname"><a href="group__sbloader.html#structboot__hdr1__t">boot_hdr1_t</a></div><div class="ttdoc">Definition for boot image file header chunk 1. </div><div class="ttdef"><b>Definition:</b> sbloader.h:159</div></div>
<div class="ttc" id="group__sbloader_html_a5bd4e4c943762926c8f653b6224cced2"><div class="ttname"><a href="group__sbloader.html#a5bd4e4c943762926c8f653b6224cced2">boot_hdr1_t::major</a></div><div class="ttdeci">uint8_t major</div><div class="ttdoc">major file format version </div><div class="ttdef"><b>Definition:</b> sbloader.h:163</div></div>
<div class="ttc" id="group__sbloader_html_ga839acaad7be8bbbec73522fe70c32302"><div class="ttname"><a href="group__sbloader.html#ga839acaad7be8bbbec73522fe70c32302">sbloader_pump</a></div><div class="ttdeci">status_t sbloader_pump(uint8_t *data, uint32_t length)</div><div class="ttdoc">Pump the loader state machine. </div><div class="ttdef"><b>Definition:</b> sbloader.c:1050</div></div>
<div class="ttc" id="group__sbloader_html_ga196130e1b193207247c017a437943ea5"><div class="ttname"><a href="group__sbloader.html#ga196130e1b193207247c017a437943ea5">sbloader_init</a></div><div class="ttdeci">status_t sbloader_init(void)</div><div class="ttdoc">Initialize the loader state machine. </div><div class="ttdef"><b>Definition:</b> sbloader.c:998</div></div>
<div class="ttc" id="group__sbloader_html_a5201e6634f83af91b52b19a094da866b"><div class="ttname"><a href="group__sbloader.html#a5201e6634f83af91b52b19a094da866b">boot_hdr2_t::bootOffset</a></div><div class="ttdeci">uint32_t bootOffset</div><div class="ttdoc">chunk offset to the first boot section </div><div class="ttdef"><b>Definition:</b> sbloader.h:172</div></div>
<div class="ttc" id="group__sbloader_html_acd2a6284879dded65f0b8daa7c68485a"><div class="ttname"><a href="group__sbloader.html#acd2a6284879dded65f0b8daa7c68485a">boot_hdr1_t::signature</a></div><div class="ttdeci">uint32_t signature</div><div class="ttdoc">must equal &quot;STMP&quot; </div><div class="ttdef"><b>Definition:</b> sbloader.h:162</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a></div><div class="ttdoc">SB loader status group number (101). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:144</div></div>
<div class="ttc" id="group__crc32_html_structcrc32__data__t"><div class="ttname"><a href="group__crc32.html#structcrc32__data__t">crc32_data_t</a></div><div class="ttdoc">State information for the CRC32 algorithm. </div><div class="ttdef"><b>Definition:</b> crc32.h:44</div></div>
<div class="ttc" id="group__sbloader_html_struct__ldr___context"><div class="ttname"><a href="group__sbloader.html#struct__ldr___context">_ldr_Context</a></div><div class="ttdoc">Loader context definition. </div><div class="ttdef"><b>Definition:</b> sbloader.h:193</div></div>
<div class="ttc" id="group__sbloader_html_a522c456248878bb557496ee9378a3d7f"><div class="ttname"><a href="group__sbloader.html#a522c456248878bb557496ee9378a3d7f">boot_hdr1_t::fileChunks</a></div><div class="ttdeci">uint32_t fileChunks</div><div class="ttdoc">total chunks in the file </div><div class="ttdef"><b>Definition:</b> sbloader.h:166</div></div>
<div class="ttc" id="group__sbloader_html_aee7c63a38575c45dbbfb42d4175e62cc"><div class="ttname"><a href="group__sbloader.html#aee7c63a38575c45dbbfb42d4175e62cc">boot_hdr1_t::fileFlags</a></div><div class="ttdeci">uint16_t fileFlags</div><div class="ttdoc">global file flags </div><div class="ttdef"><b>Definition:</b> sbloader.h:165</div></div>
<div class="ttc" id="group__sbloader_html_ae80cf2d01b7912e3586ad6054c73540f"><div class="ttname"><a href="group__sbloader.html#ae80cf2d01b7912e3586ad6054c73540f">boot_hdr2_t::sectCount</a></div><div class="ttdeci">uint16_t sectCount</div><div class="ttdoc">number of sections in the image </div><div class="ttdef"><b>Definition:</b> sbloader.h:177</div></div>
<div class="ttc" id="group__sbloader_html_ga4c78980909d12afd94251b0d8a0e6d72"><div class="ttname"><a href="group__sbloader.html#ga4c78980909d12afd94251b0d8a0e6d72">pJumpFnc_t</a></div><div class="ttdeci">status_t(* pJumpFnc_t)(uint32_t)</div><div class="ttdoc">Jump command function pointer definition. </div><div class="ttdef"><b>Definition:</b> sbloader.h:187</div></div>
<div class="ttc" id="group__sbloader_html_a50ffde9be79dd080d9e8effe3ee52d66"><div class="ttname"><a href="group__sbloader.html#a50ffde9be79dd080d9e8effe3ee52d66">boot_cmd_t::tag</a></div><div class="ttdeci">uint8_t tag</div><div class="ttdoc">command tag (identifier) </div><div class="ttdef"><b>Definition:</b> sbloader.h:151</div></div>
<div class="ttc" id="group__sbloader_html_ac0d31ca829f934cccd89f8054e02773e"><div class="ttname"><a href="group__sbloader.html#ac0d31ca829f934cccd89f8054e02773e">boot_cmd_t::address</a></div><div class="ttdeci">uint32_t address</div><div class="ttdoc">address argument </div><div class="ttdef"><b>Definition:</b> sbloader.h:153</div></div>
<div class="ttc" id="group__sbloader_html_ga776140b8326b3fbe0d466c71e7f424e4"><div class="ttname"><a href="group__sbloader.html#ga776140b8326b3fbe0d466c71e7f424e4">_sbloader_status</a></div><div class="ttdeci">_sbloader_status</div><div class="ttdoc">SB loader status codes. </div><div class="ttdef"><b>Definition:</b> sbloader.h:48</div></div>
<div class="ttc" id="group__sbloader_html_structboot__hdr2__t"><div class="ttname"><a href="group__sbloader.html#structboot__hdr2__t">boot_hdr2_t</a></div><div class="ttdoc">Definition for boot image file header chunk 2. </div><div class="ttdef"><b>Definition:</b> sbloader.h:170</div></div>
<div class="ttc" id="group__ksdk__common_html_gaaabdaf7ee58ca7269bd4bf24efcde092"><div class="ttname"><a href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a></div><div class="ttdeci">int32_t status_t</div><div class="ttdoc">Type used for all status and error return values. </div><div class="ttdef"><b>Definition:</b> fsl_common.h:121</div></div>
<div class="ttc" id="group__sbloader_html_ga1de0f1c5f7def685737224bccd4e427d"><div class="ttname"><a href="group__sbloader.html#ga1de0f1c5f7def685737224bccd4e427d">pCallFnc_t</a></div><div class="ttdeci">status_t(* pCallFnc_t)(uint32_t, uint32_t *)</div><div class="ttdoc">Call command function pointer definition. </div><div class="ttdef"><b>Definition:</b> sbloader.h:190</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_338ee919ab06332dd990fd06235e0397.html">sbloader</a></li><li class="navelem"><b>sbloader.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
